const ua = window.navigator.userAgent;

function isMobile() {
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua);
}

function isIOS() {
  return /iPhone|iPad|iPod/i.test(ua);
}

function isAndroid() {
  return /Android/i.test(ua);
}

function isWechat() {
  return /MicroMessenger/i.test(ua);
}

export { isMobile, isIOS, isAndroid, isWechat };
